using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace FreeSqlLearn {

	[JsonObject(MemberSerialization.OptIn), Table(DisableSyncStructure = true)]
	public partial class xw_wpqgb_request {

		/// <summary>
		/// 物品请购申请ID
		/// </summary>
		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public int request_record_id { get; set; }

		[JsonProperty]
		public Guid? approval_id { get; set; }

		[JsonProperty, Column(DbType = "varchar(255)")]
		public string approval_not_through_reason { get; set; }

		[JsonProperty]
		public DateTime? approval_time { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string created_by { get; set; }

		[JsonProperty]
		public DateTime? created_date { get; set; }

		[JsonProperty, Column(DbType = "varchar(50)")]
		public string last_modified_by { get; set; }

		[JsonProperty]
		public DateTime? last_modified_date { get; set; }

		/// <summary>
		/// 申请单编号
		/// </summary>
		[JsonProperty, Column(DbType = "varchar(50)")]
		public string request_no { get; set; }

		/// <summary>
		/// -1未填写完毕  0填写完毕待审批 1审批通过 2审批不通过
		/// </summary>
		[JsonProperty]
		public int? state { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,0)")]
		public decimal? total_money { get; set; }

	}

}
